/**
 * 
 */
package io.dora.conf;

import java.io.Serializable;
import java.util.Map;

/**
 * 服务地址解析类
 * 
 * @author ZhaoHongbo
 * 
 */
public class ServiceURL extends URLParam implements Serializable {

	private static final long serialVersionUID = 798821248902370859L;

	/** 服务端IP */
	private String host;

	/** 服务端商品 */
	private int port;

	/** 服务的绝对路径 */
	private String path;
	
	public ServiceURL() {
		super();
	}
	
	public ServiceURL(String url) {
		
	}
	
	public ServiceURL(String host, int port, String path) {
		super();
		this.host = host;
		this.port = port;
		this.path = path;
	}

	/**
	 * 
	 * <pre>
	 * 	127.0.0.1:20000/group/io.dazzle.demo.HelloRpc?method=&timeout=&timestamp=&protocol=
	 * </pre>
	 * 
	 * @param host
	 * @param port
	 * @param path
	 * @param parameters
	 */
	public ServiceURL(
			String host, int port, String path, Map<String, String> parameters) {
		super(parameters);
		this.host = host;
		this.port = port;
		this.path = path;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

}
